'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 主城配置
 * @author sundbcn@gmail.com (sun debing)
 */

var buildModel = require('../models/buildModel');

/**
 * 主城建筑配置
 */
exports.getCityConf = function (role_id, cb) {
    buildModel.getByRoleId(role_id, function (err, build_model) {
        if (!!err) {
            console.error(err);
            return cb();
        }
        cb(null, build_model.toJSON());
    });
};
